
let app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    themeStyle: "",
    showSinglePop: false,//显示选择弹窗
    singlePopType: "",//单项弹窗类型
    singlePopTitle: "选择",//单项弹窗标题
    showDeliveryTimePop: false,//交付时间选择
    minDate: new Date(2000, 12, 31).getTime(),
    maxDate: new Date(2050, 12, 31).getTime(),
    timePopType: "",
    showCityArea: false,//城市区域
    formData: {

      introduce: "",
      houseType: 100,//房源类型

      coverPic: "",//封面图
      customerType: 100,//租客类型
      decoration: "",//装修

      formats: "",//户型标题,
      homeownerName: "",
      phone: "",
      "houseNumber": "",

      "images": [],//所有的图片

      rentType: 100,//出租类型

      area: "",
      liveTime: "",//

      decoration: "",//装修

      introduce: "",//房源介绍


      rentMoney: "",//租金
      // subway: "",//地铁
      towards: "",//总朝向

      titleDesc: "",//描述
      tags: [

      ],
      houseConfigs: [],

      floor: "",//楼层
      roomType: 100,//房间类型
      videoUrl: "",
      payType: "",//付款类型
      vrUrl: "",//vr地址
      vrCoverPic: "",//vr封面地址
    },
    communityNumber: "",//小区编号
    secondTagArr: [],//房源特色标签
    selectSecondTagArr: [],//已选中的房源特色标签
    houseMainTag: {},//房源主标签
    houseNumber: "",
    isHaveBasicInfo: false,//是否已有新房基础信息
    btnTitle: "保存",
    mainTagsArr: [

    ],
    currentMainTagsArr: [],//当前选中的主标签
    mainSelectTagIndex: 100,//主标签
    tagsType: 1,//默认请求主标签
    /**
     * type: 0 :普通标签
     *       1 :主标签
     */

    isFoldTag: false,
    isShowFloorPopup: false,
    rentCategoryTypeArr: [
      {
        name: "房东直租",
        category: 1,
      },
      {
        name: "有房转租",
        category: 2,
      },
      {
        name: "找室友",
        category: 3,
      }
    ],
    //出租方式
    rentTypeArr: [
      {
        name: "合租",
        category: 1,
      },
      {
        name: "整租",
        category: 2,
      },

    ],
    //房间类型:
    houseTypeArr: [
      {
        name: "主卧",
        category: 1,
      },
      {
        name: "次卧",
        category: 2,
      },
      {
        name: "隔间",
        category: 3,
      },

    ],
    //租客性别:
    sexTypeArr: [
      {
        name: "男女均可",
        category: 3,
      },
      {
        name: "限男生",
        category: 1,
      },
      {
        name: "限女生",
        category: 2,
      },

    ],
    isShowConfig: false,
    selectHouseTypeIndex: 100,//选中的出租房间类型
    selectSexTypeIndex: 100,//选中的租客性别类型
    selectRentCategoryIndex: 100,//选中的租房类型
    selectRentTypeIndex: 100,//出租方式
    tempHouseConfigs: [],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
   
  },


  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (app.globalData.themeStyle) {
      this.setData({
        themeStyle: app.globalData.themeStyle
      })
    }
  },
  


})